home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -readerstuff- / paul_bray / amos-stuff / paulslib.doc < prev    next >
Text File  |  1999-11-30  |  2KB  |  103 lines

  1.  
  2. Pauls.Lib v1.00 © 1999 by Paul Bray
  3. Requires AMOS 1.36
  4.  
  5. To Install:
  6. Copy 'Pauls.lib' To Your AMOS_SYSTEM drawer
  7. Put ':Amos_System/Pauls.Lib' In Numer 13 Of The Extensions.
  8.  
  9. Commands:
  10. NOTE: These Commands Are Mostly Only Faster
  11. When The AMOS Programs Are Compiled.
  12.  
  13.  
  14. var=Q Get Long(address)
  15.                         Same As Leek But Faster.
  16.  
  17.  
  18. Q Put Long value, address
  19.                         Same As Loke But Faster.
  20.  
  21.  
  22. var=Q Get Word(address)
  23.                         Same As Deek But Faster.
  24.  
  25.  
  26. Q Put Word value, address
  27.                         Same As Doke But Faster.
  28.  
  29.  
  30. var=Q Get Byte(address)
  31.                         Same As Peek But Faster.
  32.  
  33.  
  34. Q Put Byte value, address
  35.                         Same As Poke But Faster.
  36.  
  37.  
  38. address=Alloc(size, req)
  39.                         Will Allocate Some Memory
  40.                         To Free This Memory Use 'Dealloc'.
  41.  
  42.  
  43. Dealloc(address, size)
  44.                         Will Free Some Allocated Memory.
  45.  
  46.  
  47. var=L Shl.l(value, BitsToShift)
  48.                         Like LSL.L In Assembler.
  49.  
  50.  
  51. var=L Shl.w(value, BitsToShift)
  52.                         Like LSL.W In Assembler.
  53.  
  54.  
  55. var=L Shl.b(value, BitsToShift)
  56.                         Like LSL.B In Assembler.
  57.  
  58.  
  59. var=L Shr.l(value, BitsToShift)
  60.                         Like LSR.L In Assembler.
  61.  
  62.  
  63. var=L Shr.w(value, BitsToShift)
  64.                         Like LSR.W In Assembler.
  65.  
  66.  
  67. var=L Shr.b(value, BitsToShift)
  68.                         Like LSR.B In Assembler.
  69.  
  70.  
  71. var=A Shl.l(value, BitsToShift)
  72.                         Like ASL.L In Assembler.
  73.  
  74.  
  75. var=A Shl.w(value, BitsToShift)
  76.                         Like ASL.W In Assembler.
  77.  
  78.  
  79. var=A Shl.b(value, BitsToShift)
  80.                         Like ASL.B In Assembler.
  81.  
  82.  
  83. var=A Shr.l(value, BitsToShift)
  84.                         Like ASR.L In Assembler.
  85.  
  86.  
  87. var=A Shr.w(value, BitsToShift)
  88.                         Like ASR.W In Assembler.
  89.  
  90.  
  91. var=A Shr.b(value, BitsToShift)
  92.                         Like ASR.B In Assembler.
  93.  
  94.  
  95. var=Div(a, b)
  96.                         (Requires 68020+)
  97.                         Will Divide 'a' by 'b'.
  98.  
  99.  
  100. var=Mul(a, b)
  101.                         (Requires 68020+)
  102.                         Will Multiply 'a' by 'b'.
  103.